Repository navigation
chore: ignore the .claude directory - #132
Merged
Merged
Conversation
Claude Code keeps worktrees and session state under .claude/. Nothing in it belongs in the published repo, and no workflow or doc reads it.
dg-coreylweathers
force-pushed
the
chore/ignore-local-agent-dirs
branch
from
October 9, 2026 13:52
6cbb5c6 to
4fa1d1f
Compare
GregHolmes
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.claude/to.gitignore, with a one-line comment naming what lives there. Claude Code keeps git worktrees and session state there, and none of it belongs in an open-source repo. Nothing under.claude/is tracked today; this keeps it that way for every clone, not only machines with a user-level ignore.The author's
~/.config/git/ignorealready covers.claude/settings.local.json, but that protects one machine, not the repo.Trade-off: the rule ignores the whole folder. deepgram-js-sdk ignores only
.claude/settings.local.json, which leaves room to commit shared Claude Code config later. If this repo ever wants shared config under.claude/, add a negation such as!.claude/settings.jsonnext to this rule..gitignoreuses CRLF line endings (except its last three lines), so the three added lines (a comment,.claude/and a blank line) are CRLF too; no existing line changed.🤖 Generated with Claude Code